<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>供应商基础配置管理</title>
    <jsp:include page="../../head.jsp"/>
</head>
<script type="text/javascript">
    var formSetting = {
        title: "供应商基础配置管理",
        module: 'save',
        columns: [{
            name: "FEE_ACCOUNT",
            label: "收款帐号",
            validate: 'validate[required]',
            colspan: 3
        }, {
            name: "TUISHUI_DAYS",
            label: "退税日期提醒设置",
            value: "90",
            colspan: 3
        }, {
            name: "CT_LEVELS",
            label: "货柜分级",
            value: "0:暂无货柜,1-10:用柜紧张,11-100:柜量正常,101:柜量充足",
            colspan: 3
        }, {
            name: "VEHICLE_LEVELS",
            label: "运力分级",
            value: "0:暂无拖车,1-30:运力紧张,31-100:运力正常,101:运力充足",
            colspan: 3
        }, /*  {
         name : "use_state",
         value:"0",
         label : "使用状态",
         type:"dropdown",
         data:[["启用","0"],["未启用","1"]],
         dropdownValue:"启用"
         }, {
         name : "mark",
         label : "备注",
         type : "textarea"
         }, */ {
            name: "ID",
            label: "id",
            hidden: true
        }, {
            name: "COM_ID",
            label: "com_id",
            hidden: true
        }],
        form: {
            'url': 'supComConf-saveOrUpdate',
            'data': function () {
                var dataValue = "";
                $.ajax({
                           url: "supComConf-findByComId",
                           async: false,
                           success: function (data) {
                               dataValue = data;
                           }
                       });
                return dataValue;
            }
        },
        buttons: {}
    };
    $(document).ready(function () {
        $("#formtable").mrdForm(formSetting);
    });
</script>
<body>
<div style="width: 100%">
    <div id="formtable"></div>
</div>
</body>
</html>
